package org.thirdHero.core.constant;

import java.math.BigDecimal;

public class CommonConstant {
    /**
     * 上传图片是使用的前缀
     */
    public static final String THUMNAIL_URL_SUFFIX = "thumbnailUrl_";

    public static final String BCRYPT_PASSWORD_SALT = "SHENXIAN@#";
    public static final String undefined ="undefined";
    public static final String SYNTHESIZE = "synthesize";
    public static final String SALE_COUNT = "sale_count";
    /**
     * 放置到redis存储的用户key，和token进行拼接的
     * */
    public static final String SESSION_USER = "USER";
    public static final String WX_MINI_TOKEN_APP = "wxMiNi";

    public static final int MILLISECOND = 1000;
    public static final int MINUTE = 60;

    public static final String ERRNO = "errno";
    public static final String ERRMSG = "errmsg";

    public static final String MEITUAN_ZERO = "0";
    public static final int ERRNO_SUCCESS = 1;

    public static final int ERRNO_FAIL = -1;

    public static final int ZERO = 0;
    public static final BigDecimal ONE_HUNDRED_THOUSAND = new BigDecimal(1000000);


    /**
     * 被删除
     */
    public static final int IS_DELETE = 1;

    public static final int NOT_DELETE = 0;
    /**
     * 默认
     */
    public static final int IS_DEFAULT = 1;
    /**
     * 非默认
     */
    public static final int NOT_DEFAULT = 2;

    /**
     * 启用
     */
    public static final int ENABLE = 1;
    /**
     * 禁用
     */
    public static final int DISABLE = 0;
    /**
     * 成功
     */
    public static final int SUCCESS_INT = 1;
    /**
     * 初始化订单
     */
    public static final int ORDER_STATUS_INIT = 101;
    /**
     * 订单支付中
     */
    public static final int ORDER_STATUS_PAYING = 102;
    /**
     * 订单支付成功
     */
    public static final int ORDER_STATUS_PAY_SUCCESS = 201;
    /**
     * 订单支付失败
     */
    public static final int ORDER_STATUS_PAY_FAIL = 103;
    /**
     * 订单超时
     */
    public static final int ORDER_STATUS_PAY_OVER_TIME = 104;
    /**
     * 用户取消
     */
    public static final int ORDER_STATUS_PAY_CANCEL = 105;
    /**
     * 商家已接单
     */
    public static final int ORDER_STATUS_SHOP_RECEIVE = 301;
    /**
     * 美团待调度
     */
    public static final int ORDER_STATUS_MEI_TUAN_DISPATCH = 401001;
    /**
     * 美团骑手已接单
     */
    public static final int ORDER_STATUS_MEI_TUAN_RECEIVE = 401002;
    /**
     * 骑手已取货
     */
    public static final int ORDER_STATUS_MEI_TUAN_RIDER_TAKE = 401003;
    /**
     * 订单已取消
     */
    public static final int ORDER_STATUS_MEI_TUAN_CANCEL = 401004;
    /**
     * 商家拒单
     */
    public static final int ORDER_STATUS_SHOP_REFUND = 302;
    /**
     * 商家超时未接单
     */
    public static final int ORDER_STATUS_SHOP_OVER_TIME = 303;
    /**
     * 商家已发货
     */
    public static final int ORDER_STATUS_SHOP_SHIP_GOOD = 401;
    /**
     * 退款，商家超时或商家拒单而退款
     */
    public static final int ORDER_STATUS_SHOP_BACK_MONEY = 402;
    /**
     * 配送中
     */
    public static final int ORDER_STATUS_SHOP_SHIP_TRANSPORT = 502;
    /**
     * 配送异常
     */
    public static final int ORDER_STATUS_SHOP_SHIP_TRANSPORT_ERROR = 503;
    /**
     * 确认收货
     */
    public static final int ORDER_STATUS_BUYER_CONFIRM_GOOD = 601;
    /**
     * 部分退款成功
     */
    public static final int ORDER_STATUS_PART_REFUND_GOOD = 701;
    /**
     * 买家退货
     */
    public static final int ORDER_STATUS_BUYER_RETURN_GOOD = 701;
    /**
     * 商铺收到货
     */
    public static final int ORDER_STATUS_SHOP_RECEIVE_GOOD = 801;
    /**
     * 商铺未收到货
     */
    public static final int ORDER_STATUS_SHOP_NOT_RECEIVE_GOOD = 802;
    /**
     * 配送异常
     */
    public static final int ORDER_STATUS_SHOP_RECEIVE_GOOD_ERROR = 803;
    /**
     * 申请退款
     */
    public static final int ORDER_STATUS_REFUND_APP = 901;
    /**
     * 申请退款
     */
    public static final int ORDER_STATUS_REFUND_APP_PASSED = 902;
    /**
     * 退款成功
     */
    public static final int ORDER_STATUS_REFUND_SUCCESS = 903;
    /**
     * 退款失败
     */
    public static final int ORDER_STATUS_REFUND_FAIL = 904;
    /**
     * 下订单
     */
    public static final int PAY_STATUS_MAKE_ORDER = 101;
    /**
     * 用户取消
     */
    public static final int PAY_STATUS_CANCEL = 102;
    /**
     * 付款中
     */
    public static final int PAY_STATUS_PAYING = 201;
    /**
     * 支付成功
     */
    public static final int PAY_STATUS_PAY_SUCCESS = 202;
    /**
     * 支付失败
     */
    public static final int PAY_STATUS_PAY_FAIL = 203;

    /**
     * 准备退款
     */
    public static final int PAY_STATUS_PRE_REFUND = 204;
    /**
     * 退款成功
     */
    public static final int PAY_STATUS_REFUND_SUCCESS = 205;
    /**
     * 退款失败
     */
    public static final int PAY_STATUS_REFUND_FAIL = 206;
    /**
     * 退款错误
     */
    public static final int PAY_STATUS_REFUND_ERROR = 207;


    /**
     * 未知错误
     */
    public static final int PAY_STATUS_PAY_ERROR = 105;


    /**
     * 失败
     */
    public static final int FAIL_INT = 0;
    /**
     * 没有图片
     */
    public static final Integer NO_PICTURE = 0;
    /**
     * 有图片
     */
    public static final Integer HAS_PICTURE = 1;

    /**
     * 激活状态 1 激活
     */
    public static final int IS_ACTIVE = 1;
    /**
     * 激活状态 2 否
     */
    public static final int NOT_ACTIVE = 2;
    /**
     * 是否评价 2 是
     */
    public static final int IS_COMMENTS = 2;
    /**
     * 是否评价 1 否
     */
    public static final int NOT_COMMENTS = 1;

    /**
     * 增加
     */
    public static final Integer ADD = 1;
    /**
     * 减少
     */
    public static final Integer SUBSIDE = 2;
    /** 成功*/
    public static final String SUCCESS = "SUCCESS";
    /** 失败*/
    public static final String FAIL = "FAIL";
    //已经处理过了
    public static final String AREADY = "AREADY";
    /**
     * 上架
     */
    public static final int FRESH_GOOD_SALE_STATE_UP = 1;
    /**
     * 下架
     */
    public static final int FRESH_GOOD_SALE_STATE_DOWN = 2;
    /**
     * 已打折
     */
    public static final int FRESH_GOOD_IS_DISCOUNT = 1;
    /**
     * 未打折
     */
    public static final int FRESH_GOOD_NOT_DISCOUNT = 2;

    /**
     * 店铺关闭
     */
    public static final int SHOP_MESSAGE_CLOSE  = 3;
    /**
     * 店铺开放
     */
    public static final int SHOP_MESSAGE_OPEN = 1;
    /**
     * 店铺打烊中
     */
    public static final int SHOP_MESSAGE_REST = 2;

    /**
     * 足迹类型店铺
     */
    public static final Integer FOOT_TYPE_SHOP = 2;

    /**
     * 足迹类型产品
     */
    public static final Integer FOOT_TYPE_GOOD = 1;

    /**
     * 将商户加入分账成功
     */
    public static final Integer PROFIT_SHARING_SUCESS = 1;
    /**
     * 将商户加入分账失败
     */
    public static final Integer PROFIT_SHARING_FAIL = 2;
    /**
     * 微信收费比例
     */
    public static final BigDecimal WX_SERVICE_CHARGE = new BigDecimal(0.006);
    /**
     * 常量1
     */
    public static final BigDecimal ONE = new BigDecimal(1);
    /**
     * 分账比例
     */
    public static final Integer WX_PROFIT_SHARING = 30;
    /**
     * 100
     */
    public static final Integer ONE_HUNDRED = 100;

    /**
     * 退售后初始化
     */
    public static final Integer AFTER_SALE_INIT = 100;

    /**
     * 申请售后
     */
    public static final Integer AFTER_SALE_APP = 101;

    /**
     * 店铺同意售后
     */
    public static final Integer AFTER_SHOP_ACCESS = 102;
    /**
     * 店铺拒绝退款
     */
    public static final Integer AFTER_SHOP_REFUSE = 103;
    /**
     * 申请售后成功
     */
    public static final Integer AFTER_SUCCESS = 104;
    /**
     * 退款失败
     */
    public static final Integer AFTER_FAIL = 105;
    /**
     * 发起申诉
     */
    public static final Integer APPEAL_START = 106;
    /**
     * 系统发起退款
     */
    public static final Integer SYS_REFUND = 107;
    /**
     * 系统发起分账
     */
    public static final Integer SYS_PORFIT_SHARING_REFUND = 108;
    /**
     * 售后完成
     */
    public static final Integer AFTER_SALE_FINISH = 109;
    /**
     * 全部退款
     */
    public static final int REFUND_ALL = 1;
    /**
     * 部分退款
     */
    public static final int REFUND_PART = 2;

    public static final int PRE_MAKE_ORDER = 1;

    public static final int MAKE_ORDER = 2;

}